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.001743/0.001743, allocations: 127 kB / 17.8 MB, free: 5.262 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.002084/0.002084, allocations: 214.5 kB / 20.75 MB, free: 2.309 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.415/1.415, allocations: 230.5 MB / 254 MB, free: 15.01 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.001902/0.001902, allocations: 63.91 kB / 373 MB, free: 10.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1095, allocations: 53.37 MB / 426.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003682/0.1131, allocations: 2.301 MB / 428.7 MB, free: 2.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.1149, allocations: 0.9464 MB / 429.6 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1151, allocations: 11.88 kB / 429.6 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.1152, allocations: 39.53 kB / 429.7 MB, free: 1.277 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003479/0.1156, allocations: 103.3 kB / 429.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003906/0.1159, allocations: 167.7 kB / 429.9 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004892/0.1164, allocations: 430.8 kB / 430.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002134/0.1167, allocations: 91.48 kB / 430.4 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.117, allocations: 195.2 kB / 430.6 MB, free: 312 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002791/0.1172, allocations: 187.1 kB / 430.8 MB, free: 124 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.09e-05/0.1173, allocations: 36 kB / 430.8 MB, free: 88 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.701e-05/0.1174, allocations: 52 kB / 430.9 MB, free: 36 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2159/0.3333, allocations: 94.44 kB / 431 MB, free: 8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002889/0.3336, allocations: 180.9 kB / 431.2 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006317/0.3342, allocations: 417.5 kB / 431.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3342, allocations: 1.312 kB / 431.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3342, allocations: 0.5938 kB / 431.6 MB, free: 7.926 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.3342, allocations: 0 / 431.6 MB, free: 7.926 MB / 350.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.001502/0.3357, allocations: 0.7368 MB / 432.3 MB, free: 7.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3358, allocations: 10.19 kB / 432.3 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.759e-05/0.3358, allocations: 56.55 kB / 432.4 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003096/0.3362, allocations: 66.12 kB / 432.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005162/0.3367, allocations: 390.3 kB / 432.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.3367, allocations: 22 kB / 432.8 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.03e-05/0.3368, allocations: 31.38 kB / 432.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005099/0.3373, allocations: 251.5 kB / 433.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.3373, allocations: 7.031 kB / 433.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.161e-05/0.3373, allocations: 7.922 kB / 433.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.186e-06/0.3373, allocations: 5.219 kB / 433.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004745/0.3378, allocations: 191 kB / 433.3 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.339, allocations: 0.7778 MB / 434.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004614/0.3395, allocations: 178.7 kB / 434.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002283/0.3397, allocations: 91.88 kB / 434.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.3397, allocations: 5.047 kB / 434.4 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004858/0.3402, allocations: 243.3 kB / 434.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.285e-06/0.3402, allocations: 0 / 434.6 MB, free: 6.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009761/0.3412, allocations: 380.7 kB / 435 MB, free: 6.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.082e-05/0.3413, allocations: 61.86 kB / 435 MB, free: 6.539 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003458/0.3416, allocations: 321 kB / 435.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.417e-05/0.3417, allocations: 37 kB / 435.4 MB, free: 6.398 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.3418, allocations: 184.3 kB / 435.6 MB, free: 6.293 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.418e-05/0.3418, allocations: 92.69 kB / 435.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.3419, allocations: 76.28 kB / 435.7 MB, free: 6.215 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.489e-05/0.342, allocations: 352.5 kB / 436.1 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.3423, allocations: 99.59 kB / 436.2 MB, free: 5.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003197/0.3426, allocations: 232.3 kB / 436.4 MB, free: 5.738 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005581/0.3432, allocations: 375.5 kB / 436.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.3432, allocations: 1.5 kB / 436.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007954/0.344, allocations: 440.4 kB / 437.2 MB, free: 5.445 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.344, allocations: 34.09 kB / 437.2 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.055e-05/0.344, allocations: 5.438 kB / 437.2 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.349e-05/0.344, allocations: 10.53 kB / 437.2 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.3443, allocations: 73.67 kB / 437.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.3443, allocations: 7.578 kB / 437.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.3446, allocations: 45.94 kB / 437.4 MB, free: 5.395 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.883e-05/0.3446, allocations: 18.66 kB / 437.4 MB, free: 5.395 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.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$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.0001598/0.3448, allocations: 171.3 kB / 437.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.429e-05/0.3449, allocations: 36.81 kB / 437.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007103/0.3456, allocations: 310.3 kB / 437.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.3456, allocations: 2.5 kB / 437.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3456, allocations: 1.797 kB / 437.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.3456, allocations: 3.469 kB / 437.9 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000354/0.3459, allocations: 364.3 kB / 438.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3459, allocations: 0 / 438.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.3462, allocations: 37.56 kB / 438.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.706e-06/0.3462, allocations: 5.344 kB / 438.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.79e-05/0.3462, allocations: 8.797 kB / 438.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.3462, allocations: 2.062 kB / 438.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3462, allocations: 1 kB / 438.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009611/0.3472, allocations: 468.2 kB / 438.8 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.29e-05/0.3472, allocations: 112.2 kB / 438.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.421e-05/0.3473, allocations: 9.969 kB / 438.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002293/0.3475, allocations: 19.62 kB / 438.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.492e-05/0.3476, allocations: 25.02 kB / 438.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/0.3476, allocations: 13.45 kB / 438.9 MB, free: 4.785 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002324/0.3479, allocations: 230.6 kB / 439.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3479, allocations: 0 / 439.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003662/0.3482, allocations: 77.34 kB / 439.2 MB, free: 4.637 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.001146/0.3494, allocations: 0.9941 MB / 440.2 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006917/0.3501, allocations: 317.7 kB / 440.6 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.3501, allocations: 0.9688 kB / 440.6 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.3504, allocations: 122.9 kB / 440.7 MB, free: 3.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003641/0.3507, allocations: 53.48 kB / 440.7 MB, free: 3.738 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/0.3553, allocations: 3.49 MB / 444.2 MB, free: 1.504 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002419/0.3555, allocations: 0.7877 MB / 445 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002017/0.3557, allocations: 46.31 kB / 445 MB, free: 0.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.3559, allocations: 121.5 kB / 445.2 MB, free: 0.707 MB / 350.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3559, allocations: 5.406 kB / 445.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04411/0.4, allocations: 6.973 MB / 452.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.614/9.014, allocations: 5.531 kB / 452.2 MB, free: 15.26 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.453709354042076]