Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.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.TestGyrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_TestGyrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestGyrator,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_TestGyrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009584/0.0009584, allocations: 200 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 226.5 MB / 243.4 MB, free: 6.398 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007377/0.0007377, allocations: 97.64 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2831/0.2831, allocations: 44.82 MB / 392.3 MB, free: 35.64 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002337/0.0002338, allocations: 11.94 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2603/0.2605, allocations: 62.95 MB / 0.516 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestGyrator): time 0.001349/0.2619, allocations: 1.399 MB / 0.5173 GB, free: 36.31 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.000115/0.2621, allocations: 75.56 kB / 0.5174 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.639e-05/0.2621, allocations: 0 / 0.5174 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 3.366e-05/0.2622, allocations: 9.984 kB / 0.5174 GB, free: 36.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.796e-05/0.2622, allocations: 21 kB / 0.5174 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.146e-05/0.2623, allocations: 22.28 kB / 0.5174 GB, free: 36.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 9.935e-05/0.2624, allocations: 100 kB / 0.5175 GB, free: 36.17 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.2626, allocations: 52.02 kB / 0.5176 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.025e-05/0.2626, allocations: 26.2 kB / 0.5176 GB, free: 36.14 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.2627, allocations: 41.89 kB / 0.5177 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.2627, allocations: 5.844 kB / 0.5177 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.465e-05/0.2627, allocations: 5.625 kB / 0.5177 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.545e-05/0.2627, allocations: 14.31 kB / 0.5177 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.682e-05/0.2628, allocations: 74.84 kB / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.871e-05/0.2629, allocations: 85.27 kB / 0.5178 GB, free: 36.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2629, allocations: 0 / 0.5178 GB, free: 36.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2629, allocations: 0 / 0.5178 GB, free: 36.03 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.2629, allocations: 0 / 0.5178 GB, free: 36.03 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003648/0.2633, allocations: 383.1 kB / 0.5182 GB, free: 35.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2633, allocations: 11.28 kB / 0.5182 GB, free: 35.64 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.983e-05/0.2633, allocations: 44.94 kB / 0.5183 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.555e-05/0.2634, allocations: 10.47 kB / 0.5183 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.316e-05/0.2635, allocations: 175 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.2635, allocations: 10.39 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.2635, allocations: 11.94 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001844/0.2637, allocations: 131.5 kB / 0.5186 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.2637, allocations: 3.938 kB / 0.5186 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.2637, allocations: 3.984 kB / 0.5186 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.541e-06/0.2637, allocations: 2.906 kB / 0.5186 GB, free: 35.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.98e-05/0.2638, allocations: 68.23 kB / 0.5186 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00058/0.2644, allocations: 0.7239 MB / 0.5194 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.884e-05/0.2645, allocations: 175.9 kB / 0.5195 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.693e-05/0.2645, allocations: 84.14 kB / 0.5196 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.062e-05/0.2645, allocations: 79.22 kB / 0.5197 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.2646, allocations: 113.2 kB / 0.5198 GB, free: 34.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.253e-06/0.2646, allocations: 0 / 0.5198 GB, free: 34.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 8.81e-05/0.2647, allocations: 36.39 kB / 0.5198 GB, free: 34.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.2647, allocations: 133.6 kB / 0.5199 GB, free: 33.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.2648, allocations: 149.4 kB / 0.5201 GB, free: 33.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.698e-06/0.2648, allocations: 25.7 kB / 0.5201 GB, free: 33.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.723e-05/0.2649, allocations: 122.1 kB / 0.5202 GB, free: 33.69 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.304e-06/0.2649, allocations: 0 / 0.5202 GB, free: 33.69 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.827e-06/0.2649, allocations: 0 / 0.5202 GB, free: 33.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.624e-05/0.265, allocations: 325.4 kB / 0.5205 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.811e-05/0.265, allocations: 3 kB / 0.5205 GB, free: 33.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.172e-05/0.265, allocations: 46.53 kB / 0.5206 GB, free: 33.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.68e-05/0.2651, allocations: 54 kB / 0.5206 GB, free: 33.25 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.2651, allocations: 3.031 kB / 0.5206 GB, free: 33.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001546/0.2653, allocations: 72.7 kB / 0.5207 GB, free: 33.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.2653, allocations: 5.938 kB / 0.5207 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2653, allocations: 3.938 kB / 0.5207 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2653, allocations: 6.391 kB / 0.5207 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.812e-05/0.2654, allocations: 9.688 kB / 0.5207 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.2654, allocations: 0 / 0.5207 GB, free: 33.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.893e-05/0.2654, allocations: 17.84 kB / 0.5208 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.2655, allocations: 2.688 kB / 0.5208 GB, free: 33.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.375e-05/0.2655, allocations: 192.2 kB / 0.5209 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.859e-05/0.2656, allocations: 122.3 kB / 0.5211 GB, free: 32.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.354e-05/0.2656, allocations: 108.9 kB / 0.5212 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.293e-05/0.2656, allocations: 183.3 kB / 0.5213 GB, free: 32.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.561e-05/0.2656, allocations: 183.7 kB / 0.5215 GB, free: 32.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.309e-05/0.2657, allocations: 184.2 kB / 0.5217 GB, free: 32.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.2658, allocations: 441.1 kB / 0.5221 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/0.2658, allocations: 101 kB / 0.5222 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.467e-05/0.2659, allocations: 108.3 kB / 0.5223 GB, free: 31.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.43e-05/0.2659, allocations: 179 kB / 0.5225 GB, free: 31.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/0.2659, allocations: 180.3 kB / 0.5227 GB, free: 31.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.447e-05/0.2659, allocations: 187.1 kB / 0.5228 GB, free: 30.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-05/0.266, allocations: 187.6 kB / 0.523 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.651e-05/0.266, allocations: 305.7 kB / 0.5233 GB, free: 30.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.2661, allocations: 196.3 kB / 0.5235 GB, free: 30.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.878e-05/0.2661, allocations: 180.2 kB / 0.5237 GB, free: 30.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.641e-05/0.2662, allocations: 101 kB / 0.5238 GB, free: 29.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.21e-05/0.2662, allocations: 183.1 kB / 0.5239 GB, free: 29.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.2663, allocations: 104.9 kB / 0.524 GB, free: 29.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.933e-05/0.2663, allocations: 115.3 kB / 0.5241 GB, free: 29.6 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2663, allocations: 4 kB / 0.5241 GB, free: 29.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002021/0.2665, allocations: 18.53 kB / 0.5242 GB, free: 29.59 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001927/0.2667, allocations: 0.8038 MB / 0.5249 GB, free: 28.78 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.3e-05/0.2668, allocations: 20.62 kB / 0.525 GB, free: 28.77 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2668, allocations: 2.75 kB / 0.525 GB, free: 28.77 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.2668, allocations: 0 / 0.525 GB, free: 28.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.2671, allocations: 0.5294 MB / 0.5255 GB, free: 28.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005985/0.2677, allocations: 0.6415 MB / 0.5261 GB, free: 27.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.981e-05/0.2678, allocations: 0.6905 MB / 0.5268 GB, free: 26.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.518e-05/0.2678, allocations: 26.23 kB / 0.5268 GB, free: 26.96 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.2678, allocations: 2.969 kB / 0.5268 GB, free: 26.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.009/3.277, allocations: 1.299 MB / 0.5281 GB, free: 26.86 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_TestGyrator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Electrical_Analog_TestGyrator.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestGyrator/TestGyrator.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Electrical.Analog.TestGyrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches