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.001688/0.001688, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002171/0.002171, allocations: 205.7 kB / 23.72 MB, free: 4.391 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.581/1.581, allocations: 230.5 MB / 257.4 MB, free: 7.742 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.001914/0.001914, allocations: 67.89 kB / 377.7 MB, free: 2.805 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3632/0.3651, allocations: 53.4 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003964/0.369, allocations: 2.159 MB / 433.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001863/0.3709, allocations: 0.8997 MB / 434.2 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000149/0.371, allocations: 7.938 kB / 434.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.3712, allocations: 39.47 kB / 434.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003625/0.3716, allocations: 115.2 kB / 434.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003868/0.3719, allocations: 163.7 kB / 434.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004933/0.3724, allocations: 426.8 kB / 434.9 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000215/0.3727, allocations: 90.83 kB / 435 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003197/0.373, allocations: 179.3 kB / 435.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003081/0.3733, allocations: 179 kB / 435.4 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.077e-05/0.3734, allocations: 44 kB / 435.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001181/0.3735, allocations: 52 kB / 435.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001164/0.3736, allocations: 91.66 kB / 435.6 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.3738, allocations: 151.2 kB / 435.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005555/0.3743, allocations: 420.1 kB / 436.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.3743, allocations: 0 / 436.1 MB, free: 1.461 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3743, allocations: 3.938 kB / 436.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.3743, allocations: 0 / 436.1 MB, free: 1.457 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.001889/0.3762, allocations: 0.7746 MB / 436.9 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.3763, allocations: 11.98 kB / 436.9 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.487e-05/0.3764, allocations: 58.72 kB / 437 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000341/0.3767, allocations: 68.62 kB / 437 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007069/0.3774, allocations: 314.8 kB / 437.3 MB, free: 160 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.951e-05/0.3775, allocations: 24.8 kB / 437.4 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.77e-05/0.3775, allocations: 36.27 kB / 437.4 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005943/0.3781, allocations: 259.2 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.3781, allocations: 0 / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.659e-05/0.3782, allocations: 12 kB / 437.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3782, allocations: 8 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/0.3787, allocations: 185.6 kB / 437.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001438/0.3801, allocations: 0.6652 MB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004881/0.3806, allocations: 174.7 kB / 438.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002386/0.3809, allocations: 96.17 kB / 438.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.3809, allocations: 7.922 kB / 438.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005074/0.3814, allocations: 241 kB / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.583e-06/0.3814, allocations: 0 / 439 MB, free: 14.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009528/0.3824, allocations: 387.3 kB / 439.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.52e-05/0.3824, allocations: 63.38 kB / 439.5 MB, free: 13.94 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000396/0.3828, allocations: 324.5 kB / 439.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.613e-05/0.3829, allocations: 41.69 kB / 439.8 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001779/0.383, allocations: 180.8 kB / 440 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.863e-05/0.3831, allocations: 91.27 kB / 440.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.3833, allocations: 74.06 kB / 440.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002499/0.3835, allocations: 346.8 kB / 440.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003006/0.3838, allocations: 126.4 kB / 440.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004398/0.3843, allocations: 268 kB / 440.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007233/0.385, allocations: 374.5 kB / 441.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.385, allocations: 0 / 441.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008706/0.3859, allocations: 463.5 kB / 441.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.463e-05/0.3859, allocations: 37.69 kB / 441.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.214e-05/0.3859, allocations: 4 kB / 441.7 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.092e-05/0.386, allocations: 8 kB / 441.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002988/0.3863, allocations: 67.89 kB / 441.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.087e-05/0.3863, allocations: 11.94 kB / 441.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.3866, allocations: 39.77 kB / 441.9 MB, free: 11.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.48e-05/0.3866, allocations: 32.02 kB / 441.9 MB, free: 11.3 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.0002371/0.3868, allocations: 168.1 kB / 442.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.338e-05/0.3869, allocations: 35.77 kB / 442.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007493/0.3876, allocations: 310.2 kB / 442.4 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.534e-06/0.3876, allocations: 8 kB / 442.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.3877, allocations: 0 / 442.4 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.3877, allocations: 3.984 kB / 442.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.388, allocations: 296.4 kB / 442.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.388, allocations: 0 / 442.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002412/0.3883, allocations: 47.89 kB / 442.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.3883, allocations: 0 / 442.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.3883, allocations: 8 kB / 442.8 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3883, allocations: 4.062 kB / 442.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3883, allocations: 3.984 kB / 442.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.3893, allocations: 461.4 kB / 443.2 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.679e-05/0.3894, allocations: 39.8 kB / 443.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.094e-05/0.3895, allocations: 4 kB / 443.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.3897, allocations: 23.97 kB / 443.3 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.404e-05/0.3897, allocations: 23.95 kB / 443.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.463e-05/0.3898, allocations: 16 kB / 443.3 MB, free: 9.801 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002544/0.39, allocations: 235 kB / 443.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.39, allocations: 4 kB / 443.6 MB, free: 9.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003446/0.3904, allocations: 67.89 kB / 443.6 MB, free: 9.504 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.001338/0.3917, allocations: 1.007 MB / 444.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007074/0.3924, allocations: 341.8 kB / 445 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.3924, allocations: 0 / 445 MB, free: 8.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003009/0.3927, allocations: 128.3 kB / 445.1 MB, free: 7.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003775/0.3931, allocations: 49 kB / 445.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005194/0.3983, allocations: 3.597 MB / 448.7 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.3985, allocations: 181.5 kB / 448.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.3987, allocations: 51.03 kB / 449 MB, free: 3.863 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/0.3989, allocations: 123.4 kB / 449.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3989, allocations: 0 / 449.1 MB, free: 3.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04302/0.4419, allocations: 7.792 MB / 456.9 MB, free: 12.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.44, allocations: 2.719 kB / 456.9 MB, free: 12.08 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.194373222999275]