Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001729/0.001729, allocations: 112.7 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002183/0.002183, allocations: 216.6 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.529/1.529, allocations: 230.5 MB / 257.4 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemoSignalCharacteristic,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 67.88 kB / 377.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2696/0.2715, allocations: 53.41 MB / 431.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003554/0.2751, allocations: 2.299 MB / 433.5 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001835/0.2769, allocations: 0.9658 MB / 434.4 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.2771, allocations: 7.938 kB / 434.5 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001635/0.2773, allocations: 39.53 kB / 434.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003687/0.2776, allocations: 115.2 kB / 434.6 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004078/0.278, allocations: 163.7 kB / 434.8 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005135/0.2785, allocations: 430.8 kB / 435.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.2788, allocations: 91.03 kB / 435.3 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003195/0.2791, allocations: 179.3 kB / 435.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.2794, allocations: 191.1 kB / 435.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.425e-05/0.2795, allocations: 40 kB / 435.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001108/0.2796, allocations: 55.98 kB / 435.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.2797, allocations: 99.61 kB / 435.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.2799, allocations: 183 kB / 436 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005015/0.2804, allocations: 418.6 kB / 436.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.2804, allocations: 0 / 436.4 MB, free: 1.469 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2804, allocations: 4 kB / 436.4 MB, free: 1.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.2804, allocations: 0 / 436.4 MB, free: 1.465 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001666/0.282, allocations: 0.7707 MB / 437.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2821, allocations: 8.031 kB / 437.2 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.516e-05/0.2822, allocations: 58.73 kB / 437.3 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002951/0.2824, allocations: 68.62 kB / 437.3 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005752/0.283, allocations: 318.7 kB / 437.6 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.2831, allocations: 28.81 kB / 437.7 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.454e-05/0.2831, allocations: 28.38 kB / 437.7 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000567/0.2837, allocations: 259.4 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.2837, allocations: 3.953 kB / 437.9 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.046e-05/0.2837, allocations: 12 kB / 438 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.2837, allocations: 4 kB / 438 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000496/0.2842, allocations: 193.6 kB / 438.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.2856, allocations: 0.7391 MB / 438.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004867/0.2861, allocations: 178.8 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000239/0.2863, allocations: 88.36 kB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.2864, allocations: 7.938 kB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005024/0.2869, allocations: 248.9 kB / 439.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.834e-06/0.2869, allocations: 4 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001004/0.2879, allocations: 371.4 kB / 439.8 MB, free: 13.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.4e-05/0.2879, allocations: 59.39 kB / 439.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003792/0.2883, allocations: 320.5 kB / 440.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.545e-05/0.2884, allocations: 37.7 kB / 440.2 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001562/0.2885, allocations: 204.6 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.398e-05/0.2886, allocations: 87.27 kB / 440.5 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.2887, allocations: 74.06 kB / 440.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001814/0.2889, allocations: 346.8 kB / 440.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002676/0.2892, allocations: 96.69 kB / 441 MB, free: 12.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003705/0.2896, allocations: 234.3 kB / 441.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006634/0.2902, allocations: 381.1 kB / 441.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.2902, allocations: 0 / 441.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008831/0.2911, allocations: 426.5 kB / 442 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.356e-05/0.2912, allocations: 33.7 kB / 442 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.2912, allocations: 4.531 kB / 442 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.242e-05/0.2912, allocations: 12 kB / 442 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003026/0.2915, allocations: 83.83 kB / 442.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.451e-05/0.2915, allocations: 7.984 kB / 442.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002867/0.2918, allocations: 43.77 kB / 442.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.73e-05/0.2918, allocations: 16 kB / 442.2 MB, free: 11.35 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 (rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,pulse.T_start,$PRE.pulse.T_start,pulse.count,$PRE.pulse.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000243/0.2921, allocations: 175.4 kB / 442.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.735e-05/0.2922, allocations: 43.77 kB / 442.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007551/0.2929, allocations: 302.3 kB / 442.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.673e-06/0.2929, allocations: 7.938 kB / 442.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2929, allocations: 0 / 442.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2929, allocations: 0 / 442.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004204/0.2933, allocations: 336.3 kB / 443 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.2933, allocations: 8 kB / 443 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002273/0.2936, allocations: 35.97 kB / 443.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.2936, allocations: 0 / 443.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.2936, allocations: 11.98 kB / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.2936, allocations: 0 / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2936, allocations: 0 / 443.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009765/0.2946, allocations: 465.3 kB / 443.5 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.545e-05/0.2947, allocations: 39.75 kB / 443.6 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.73e-05/0.2947, allocations: 11.98 kB / 443.6 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002418/0.295, allocations: 15.98 kB / 443.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.103e-05/0.295, allocations: 23.95 kB / 443.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.2951, allocations: 15.98 kB / 443.6 MB, free: 9.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002583/0.2953, allocations: 239 kB / 443.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2953, allocations: 0 / 443.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003426/0.2957, allocations: 67.89 kB / 443.9 MB, free: 9.508 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last,pulse.count,pulse.T_start) * Number of discrete states: 6 (pulse.count,mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001321/0.297, allocations: 0.996 MB / 444.9 MB, free: 8.484 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007329/0.2977, allocations: 325.8 kB / 445.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.2977, allocations: 0 / 445.3 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.298, allocations: 112.3 kB / 445.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/0.2984, allocations: 53.42 kB / 445.4 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005412/0.3038, allocations: 3.497 MB / 448.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004303/0.3042, allocations: 0.7953 MB / 449.7 MB, free: 3.469 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.3044, allocations: 47.03 kB / 449.8 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002167/0.3046, allocations: 123.4 kB / 449.9 MB, free: 3.301 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3046, allocations: 0 / 449.9 MB, free: 3.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03797/0.3426, allocations: 7.232 MB / 457.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.86, allocations: 4 kB / 457.1 MB, free: 12.17 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0005 Modelica_trunk_Modelica_Blocks_Examples_DemoSignalCharacteristic.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemoSignalCharacteristic/DemoSignalCharacteristic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable Time in file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv. Warning: Get data of variable Time from file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv failed! Error: Could not read variable mean.y in file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv. Warning: Get data of variable mean.y from file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv failed! Error: Could not read variable rectifiedMean.y in file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv. Warning: Get data of variable rectifiedMean.y from file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv failed! Error: Could not read variable rootMeanSquare.y in file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv. Warning: Get data of variable rootMeanSquare.y from file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv failed! Error: Could not read variable harmonic.mean1.y in file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv. Warning: Get data of variable harmonic.mean1.y from file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv failed! Error: Could not read variable harmonic.mean2.y in file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv. Warning: Get data of variable harmonic.mean2.y from file Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.4808619669966]