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.0008636/0.0008636, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001015/0.001015, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9051/0.9051, allocations: 177 MB / 204.1 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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 1.603e-06/1.603e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.907e-05/2.067e-05, allocations: 2.844 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.00232/0.002341, allocations: 2.168 MB / 326.7 MB, free: 13.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001302/0.003643, allocations: 0.9074 MB / 327.6 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001333/0.003776, allocations: 7.938 kB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.003896, allocations: 31.55 kB / 327.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002893/0.004186, allocations: 111.1 kB / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003136/0.004499, allocations: 179.5 kB / 327.9 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003338/0.004833, allocations: 434.8 kB / 328.3 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001676/0.005001, allocations: 83.72 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002968/0.005297, allocations: 255.3 kB / 328.7 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.005469, allocations: 147.5 kB / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.518e-05/0.005514, allocations: 43.98 kB / 328.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.775e-05/0.005582, allocations: 44 kB / 328.9 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.591e-05/0.005648, allocations: 103.6 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.233e-05/0.00574, allocations: 119.7 kB / 329.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003349/0.006075, allocations: 434.6 kB / 329.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.006077, allocations: 0 / 329.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.006079, allocations: 0 / 329.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.006084, allocations: 0 / 329.5 MB, free: 10.83 MB / 298.7 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.001024/0.007108, allocations: 0.7708 MB / 330.3 MB, free: 10 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.007148, allocations: 11.98 kB / 330.3 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.414e-05/0.007192, allocations: 54.73 kB / 330.4 MB, free: 9.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001695/0.007362, allocations: 68.62 kB / 330.4 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004386/0.0078, allocations: 326 kB / 330.8 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.19e-05/0.007822, allocations: 20.88 kB / 330.8 MB, free: 9.496 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.361e-05/0.007866, allocations: 32.33 kB / 330.8 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003388/0.008205, allocations: 252.6 kB / 331.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.403e-05/0.008219, allocations: 8.109 kB / 331.1 MB, free: 9.207 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/0.008241, allocations: 12.12 kB / 331.1 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.763e-06/0.008248, allocations: 4 kB / 331.1 MB, free: 9.191 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002748/0.008522, allocations: 189.9 kB / 331.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008285/0.009351, allocations: 0.6654 MB / 331.9 MB, free: 8.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002875/0.009638, allocations: 182.7 kB / 332.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001225/0.009761, allocations: 88.73 kB / 332.2 MB, free: 8.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.009781, allocations: 3.984 kB / 332.2 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003009/0.01008, allocations: 252.9 kB / 332.4 MB, free: 7.754 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 2.185e-06/0.01008, allocations: 0 / 332.4 MB, free: 7.754 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0005561/0.01064, allocations: 380.1 kB / 332.8 MB, free: 7.379 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.01068, allocations: 63.39 kB / 332.9 MB, free: 7.305 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002369/0.01091, allocations: 328.4 kB / 333.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.01094, allocations: 37.7 kB / 333.2 MB, free: 6.926 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.994e-05/0.01104, allocations: 184.8 kB / 333.4 MB, free: 6.742 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.519e-05/0.01108, allocations: 83.28 kB / 333.5 MB, free: 6.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.231e-05/0.01116, allocations: 74.06 kB / 333.6 MB, free: 6.578 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.289e-05/0.01125, allocations: 350.7 kB / 333.9 MB, free: 6.227 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.01141, allocations: 130.4 kB / 334 MB, free: 6.094 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002075/0.01162, allocations: 260.1 kB / 334.3 MB, free: 5.773 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003571/0.01197, allocations: 373.5 kB / 334.7 MB, free: 5.344 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.01198, allocations: 4 kB / 334.7 MB, free: 5.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004615/0.01244, allocations: 456.7 kB / 335.1 MB, free: 4.875 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.166e-05/0.01247, allocations: 37.64 kB / 335.1 MB, free: 4.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.01248, allocations: 8 kB / 335.2 MB, free: 4.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.01249, allocations: 8 kB / 335.2 MB, free: 4.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.01264, allocations: 75.83 kB / 335.2 MB, free: 4.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.01265, allocations: 7.984 kB / 335.2 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.01279, allocations: 51.75 kB / 335.3 MB, free: 4.684 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.865e-05/0.01281, allocations: 12 kB / 335.3 MB, free: 4.672 MB / 298.7 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.000473/0.01328, allocations: 179.6 kB / 335.5 MB, free: 4.484 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.697e-05/0.01332, allocations: 39.7 kB / 335.5 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004045/0.01372, allocations: 309.4 kB / 335.8 MB, free: 4.137 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.01373, allocations: 4 kB / 335.8 MB, free: 4.133 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.01373, allocations: 3.938 kB / 335.8 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.01373, allocations: 0 / 335.8 MB, free: 4.129 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002022/0.01393, allocations: 296.5 kB / 336.1 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.01394, allocations: 0 / 336.1 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001174/0.01405, allocations: 39.91 kB / 336.2 MB, free: 3.758 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.596e-06/0.01406, allocations: 3.938 kB / 336.2 MB, free: 3.754 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.741e-05/0.01407, allocations: 11.98 kB / 336.2 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.01408, allocations: 0 / 336.2 MB, free: 3.742 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.995e-06/0.01408, allocations: 4.062 kB / 336.2 MB, free: 3.738 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005486/0.01463, allocations: 457.7 kB / 336.6 MB, free: 3.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.754e-05/0.01467, allocations: 39.8 kB / 336.7 MB, free: 3.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.0147, allocations: 15.88 kB / 336.7 MB, free: 3.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-05/0.0148, allocations: 19.97 kB / 336.7 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.601e-05/0.01486, allocations: 23.95 kB / 336.7 MB, free: 3.172 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.01488, allocations: 15.98 kB / 336.7 MB, free: 3.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001547/0.01503, allocations: 231.1 kB / 337 MB, free: 2.934 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01503, allocations: 0 / 337 MB, free: 2.934 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002103/0.01524, allocations: 71.89 kB / 337 MB, free: 2.863 MB / 298.7 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.0007731/0.01601, allocations: 1.008 MB / 338 MB, free: 1.828 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004207/0.01644, allocations: 340.8 kB / 338.4 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.01644, allocations: 0 / 338.4 MB, free: 1.477 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000161/0.0166, allocations: 116.9 kB / 338.5 MB, free: 1.363 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002385/0.01684, allocations: 53.11 kB / 338.5 MB, free: 1.309 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003358/0.02019, allocations: 3.589 MB / 342.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001257/0.02032, allocations: 189.3 kB / 342.3 MB, free: 13.27 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001071/0.02043, allocations: 51.03 kB / 342.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.02056, allocations: 120.5 kB / 342.5 MB, free: 13.1 MB / 314.7 MB Notification: Performance of SimCode: time 7.02e-07/0.02056, allocations: 0 / 342.5 MB, free: 13.1 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02165/0.04221, allocations: 7.94 MB / 350.4 MB, free: 5.297 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.799/6.842, allocations: 7.188 kB / 350.4 MB, free: 5.293 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemoSignalCharacteristic/DemoSignalCharacteristic.csv","/var/lib/jenkins/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: 8.598169525153935]