Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState.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.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.IntegratorForceState,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Blocks_IntegratorForceState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 193.9 kB / 16.09 MB, free: 5.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 226.5 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000734/0.0007341, allocations: 93.34 kB / 295.4 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2725/0.2725, allocations: 44.82 MB / 392.3 MB, free: 35.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002332, allocations: 8 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2532, allocations: 62.95 MB / 0.516 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegratorForceState): time 0.001238/0.2545, allocations: 1.266 MB / 0.5172 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001564/0.2547, allocations: 52.84 kB / 0.5172 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.189e-05/0.2547, allocations: 2.875 kB / 0.5172 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.856e-05/0.2548, allocations: 3.938 kB / 0.5172 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.64e-05/0.2549, allocations: 3.984 kB / 0.5173 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.562e-05/0.255, allocations: 14.16 kB / 0.5173 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.668e-05/0.255, allocations: 36.72 kB / 0.5173 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.068e-05/0.2551, allocations: 9.656 kB / 0.5173 GB, free: 36.04 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.131e-05/0.2552, allocations: 10.59 kB / 0.5173 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.064e-05/0.2552, allocations: 14.05 kB / 0.5173 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.392e-05/0.2552, allocations: 2.781 kB / 0.5173 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.037e-06/0.2552, allocations: 0 / 0.5173 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.059e-05/0.2553, allocations: 2.75 kB / 0.5173 GB, free: 36.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.034e-05/0.2553, allocations: 48.42 kB / 0.5174 GB, free: 35.98 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 5.101e-05/0.2554, allocations: 22.67 kB / 0.5174 GB, free: 35.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2554, allocations: 0 / 0.5174 GB, free: 35.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2554, allocations: 2.906 kB / 0.5174 GB, free: 35.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.2554, allocations: 0 / 0.5174 GB, free: 35.97 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0002973/0.2557, allocations: 348.9 kB / 0.5177 GB, free: 35.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.2557, allocations: 8.719 kB / 0.5177 GB, free: 35.6 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.277e-05/0.2558, allocations: 33.75 kB / 0.5178 GB, free: 35.56 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.077e-05/0.2558, allocations: 3.719 kB / 0.5178 GB, free: 35.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001019/0.2559, allocations: 184.7 kB / 0.518 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-06/0.2559, allocations: 384 / 0.518 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.765e-05/0.2559, allocations: 3.438 kB / 0.518 GB, free: 35.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001304/0.2561, allocations: 75.08 kB / 0.518 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.264e-06/0.2561, allocations: 3.938 kB / 0.518 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.2561, allocations: 3.188 kB / 0.518 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2561, allocations: 3.031 kB / 0.518 GB, free: 35.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.035e-05/0.2562, allocations: 28.94 kB / 0.5181 GB, free: 35.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003361/0.2565, allocations: 456.5 kB / 0.5185 GB, free: 34.81 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001305/0.2567, allocations: 43.27 kB / 0.5185 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.217e-05/0.2567, allocations: 24.69 kB / 0.5186 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.2568, allocations: 3.938 kB / 0.5186 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.129e-05/0.2568, allocations: 34.55 kB / 0.5186 GB, free: 34.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.2568, allocations: 0 / 0.5186 GB, free: 34.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003832/0.2572, allocations: 116.9 kB / 0.5187 GB, free: 34.66 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.586e-05/0.2572, allocations: 51.41 kB / 0.5188 GB, free: 34.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.231e-05/0.2573, allocations: 122.8 kB / 0.5189 GB, free: 34.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.013e-06/0.2573, allocations: 25.7 kB / 0.5189 GB, free: 34.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.788e-05/0.2573, allocations: 91.98 kB / 0.519 GB, free: 34.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.307e-06/0.2573, allocations: 11.27 kB / 0.519 GB, free: 34.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.2573, allocations: 4 kB / 0.519 GB, free: 34.35 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.671e-05/0.2574, allocations: 317.9 kB / 0.5193 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.589e-05/0.2574, allocations: 20 kB / 0.5193 GB, free: 34.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.726e-05/0.2575, allocations: 49.38 kB / 0.5194 GB, free: 33.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.14e-05/0.2576, allocations: 64.75 kB / 0.5194 GB, free: 33.94 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.62e-07/0.2576, allocations: 0 / 0.5194 GB, free: 33.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001313/0.2577, allocations: 89.3 kB / 0.5195 GB, free: 33.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.157e-06/0.2577, allocations: 5.781 kB / 0.5195 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.2577, allocations: 2.938 kB / 0.5195 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.031e-05/0.2578, allocations: 4.094 kB / 0.5195 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.562e-05/0.2578, allocations: 15.31 kB / 0.5196 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.2578, allocations: 0 / 0.5196 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.469e-05/0.2579, allocations: 2.844 kB / 0.5196 GB, free: 33.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.779e-06/0.2579, allocations: 2.906 kB / 0.5196 GB, free: 33.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.089e-05/0.2579, allocations: 123.3 kB / 0.5197 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.258, allocations: 3.906 kB / 0.5197 GB, free: 33.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.899e-05/0.258, allocations: 13.69 kB / 0.5197 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.258, allocations: 4 kB / 0.5197 GB, free: 33.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.095e-06/0.258, allocations: 3.938 kB / 0.5197 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.258, allocations: 0 / 0.5197 GB, free: 33.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.2581, allocations: 176 kB / 0.5199 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.2581, allocations: 0 / 0.5199 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.646e-05/0.2582, allocations: 6.875 kB / 0.5199 GB, free: 33.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.2582, allocations: 4.375 kB / 0.5199 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.2582, allocations: 2.938 kB / 0.5199 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2582, allocations: 0 / 0.5199 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2582, allocations: 3.234 kB / 0.5199 GB, free: 33.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001787/0.2584, allocations: 183.7 kB / 0.5201 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.176e-05/0.2584, allocations: 91.89 kB / 0.5202 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.144e-05/0.2585, allocations: 0 / 0.5202 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.793e-05/0.2585, allocations: 6.656 kB / 0.5202 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.763e-05/0.2586, allocations: 10.58 kB / 0.5202 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.035e-06/0.2586, allocations: 0 / 0.5202 GB, free: 33.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.739e-05/0.2586, allocations: 91.14 kB / 0.5203 GB, free: 33.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2586, allocations: 0 / 0.5203 GB, free: 33.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002006/0.2588, allocations: 9.656 kB / 0.5203 GB, free: 33.18 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (gain.y) * 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 (4): * Single equations (assignments): 4 * 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.0002867/0.2591, allocations: 0.7066 MB / 0.521 GB, free: 32.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001195/0.2592, allocations: 45.42 kB / 0.521 GB, free: 32.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.2592, allocations: 0 / 0.521 GB, free: 32.49 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.2e-05/0.2593, allocations: 25.42 kB / 0.521 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.2595, allocations: 9.625 kB / 0.521 GB, free: 32.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006649/0.2602, allocations: 0.5271 MB / 0.5215 GB, free: 32.04 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.339e-05/0.2603, allocations: 0.6843 MB / 0.5222 GB, free: 31.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.473e-05/0.2604, allocations: 14.83 kB / 0.5222 GB, free: 31.33 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.2604, allocations: 3.938 kB / 0.5222 GB, free: 31.33 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.508/2.768, allocations: 1.013 MB / 0.5232 GB, free: 31.26 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Blocks_IntegratorForceState_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Blocks_IntegratorForceState.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegratorForceState/IntegratorForceState.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.IntegratorForceState.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches