Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 193.7 kB / 16.09 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.224/1.224, allocations: 226.5 MB / 243.4 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007249/0.0007248, allocations: 93.52 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2797/0.2797, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002475/0.0002475, allocations: 4 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2584, allocations: 62.97 MB / 0.516 GB, free: 37.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches): time 0.00214/0.2606, allocations: 2.48 MB / 0.5184 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007851/0.2614, allocations: 0.6597 MB / 0.519 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001121/0.2615, allocations: 9.781 kB / 0.519 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001138/0.2617, allocations: 42.8 kB / 0.5191 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001177/0.2618, allocations: 77.05 kB / 0.5192 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001238/0.2619, allocations: 61.94 kB / 0.5192 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002649/0.2622, allocations: 379 kB / 0.5196 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001804/0.2624, allocations: 108.1 kB / 0.5197 GB, free: 34.49 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.397e-05/0.2625, allocations: 126.6 kB / 0.5198 GB, free: 34.44 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.2626, allocations: 137.7 kB / 0.5199 GB, free: 34.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.2627, allocations: 17.22 kB / 0.5199 GB, free: 34.38 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.031e-05/0.2627, allocations: 17.81 kB / 0.52 GB, free: 34.38 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.742e-05/0.2627, allocations: 58.12 kB / 0.52 GB, free: 34.34 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001044/0.2629, allocations: 170.6 kB / 0.5202 GB, free: 34.23 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.263, allocations: 285.3 kB / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.263, allocations: 0 / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2631, allocations: 0 / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.2631, allocations: 0 / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.000722/0.2638, allocations: 0.5939 MB / 0.521 GB, free: 33.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.575e-05/0.2638, allocations: 12.75 kB / 0.521 GB, free: 33.7 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.207e-05/0.2639, allocations: 62.19 kB / 0.5211 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.173e-05/0.264, allocations: 33.75 kB / 0.5211 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002223/0.2642, allocations: 280.6 kB / 0.5214 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.2642, allocations: 17.84 kB / 0.5214 GB, free: 33.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.2642, allocations: 26.12 kB / 0.5214 GB, free: 33.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004997/0.2648, allocations: 336.3 kB / 0.5218 GB, free: 33.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.2648, allocations: 3.938 kB / 0.5218 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.2648, allocations: 14.97 kB / 0.5218 GB, free: 33.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2648, allocations: 5.781 kB / 0.5218 GB, free: 33.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004317/0.2653, allocations: 252.2 kB / 0.522 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.2668, allocations: 1.279 MB / 0.5233 GB, free: 32.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006297/0.2675, allocations: 489.2 kB / 0.5237 GB, free: 31.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.2678, allocations: 172.3 kB / 0.5239 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.862e-05/0.2678, allocations: 6.922 kB / 0.5239 GB, free: 31.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.427e-05/0.2678, allocations: 33.3 kB / 0.5239 GB, free: 31.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 2.134e-06/0.2678, allocations: 0 / 0.5239 GB, free: 31.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.002659/0.2705, allocations: 1.174 MB / 0.5251 GB, free: 31.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.837e-05/0.2705, allocations: 54.25 kB / 0.5251 GB, free: 31.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.2707, allocations: 245.1 kB / 0.5254 GB, free: 31.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.612e-05/0.2707, allocations: 33.7 kB / 0.5254 GB, free: 31.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.837e-05/0.2708, allocations: 168.3 kB / 0.5256 GB, free: 31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.2708, allocations: 87.67 kB / 0.5257 GB, free: 30.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.318e-05/0.2708, allocations: 4 kB / 0.5257 GB, free: 30.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.656e-05/0.2709, allocations: 334.5 kB / 0.526 GB, free: 30.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002135/0.2711, allocations: 110.5 kB / 0.5261 GB, free: 30.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002134/0.2713, allocations: 152.2 kB / 0.5262 GB, free: 30.49 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004001/0.2717, allocations: 267.1 kB / 0.5265 GB, free: 30.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2717, allocations: 0 / 0.5265 GB, free: 30.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009688/0.2727, allocations: 0.5317 MB / 0.527 GB, free: 30.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.2727, allocations: 5.656 kB / 0.527 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.2728, allocations: 10.62 kB / 0.527 GB, free: 30.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008736/0.2736, allocations: 284.5 kB / 0.5273 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.2738, allocations: 36.69 kB / 0.5273 GB, free: 30.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002895/0.2767, allocations: 3.516 MB / 0.5308 GB, free: 27.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001758/0.2769, allocations: 41.06 kB / 0.5308 GB, free: 27.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.2769, allocations: 5.812 kB / 0.5308 GB, free: 27.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.277, allocations: 147.5 kB / 0.5309 GB, free: 26.96 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.277, allocations: 27 kB / 0.531 GB, free: 26.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.631e-05/0.2771, allocations: 36.06 kB / 0.531 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.2771, allocations: 2.844 kB / 0.531 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.2771, allocations: 3.062 kB / 0.531 GB, free: 26.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2771, allocations: 3.938 kB / 0.531 GB, free: 26.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001316/0.2785, allocations: 0.9341 MB / 0.5319 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.2785, allocations: 0 / 0.5319 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.301e-05/0.2786, allocations: 19.09 kB / 0.5319 GB, free: 26.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008027/0.2794, allocations: 285.4 kB / 0.5322 GB, free: 26.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.2794, allocations: 4 kB / 0.5322 GB, free: 26.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002776/0.2822, allocations: 3.521 MB / 0.5357 GB, free: 23.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.2822, allocations: 3.938 kB / 0.5357 GB, free: 23.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009251/0.2831, allocations: 0.5782 MB / 0.5362 GB, free: 23.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.666e-05/0.2832, allocations: 125.7 kB / 0.5363 GB, free: 22.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.759e-05/0.2832, allocations: 4 kB / 0.5363 GB, free: 22.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002133/0.2835, allocations: 38.03 kB / 0.5364 GB, free: 22.94 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.488e-05/0.2835, allocations: 26.06 kB / 0.5364 GB, free: 22.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.2836, allocations: 8.688 kB / 0.5364 GB, free: 22.93 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001121/0.2837, allocations: 172.8 kB / 0.5366 GB, free: 22.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2837, allocations: 2.188 kB / 0.5366 GB, free: 22.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003442/0.284, allocations: 107.2 kB / 0.5367 GB, free: 22.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001048/0.2851, allocations: 1.123 MB / 0.5378 GB, free: 21.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007725/0.2859, allocations: 0.5756 MB / 0.5383 GB, free: 21.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2859, allocations: 8.062 kB / 0.5384 GB, free: 21.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004637/0.2864, allocations: 450.4 kB / 0.5388 GB, free: 21.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000361/0.2867, allocations: 50.45 kB / 0.5388 GB, free: 21.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.2892, allocations: 1.817 MB / 0.5406 GB, free: 20.31 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.2893, allocations: 0.769 MB / 0.5414 GB, free: 19.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.31e-05/0.2894, allocations: 79.98 kB / 0.5414 GB, free: 19.54 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.2894, allocations: 0 / 0.5414 GB, free: 19.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.609/3.899, allocations: 6.235 MB / 0.5475 GB, free: 19.03 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_Ideal_IdealTwoWaySwitches.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/Ideal/IdealTwoWaySwitches/IdealTwoWaySwitches.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches