Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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) 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: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001588/0.001587, allocations: 196.3 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 226.5 MB / 244.7 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007308/0.0007306, allocations: 103.6 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002215/0.0002217, allocations: 8 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2056, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002085/0.2078, allocations: 2.147 MB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.2091, allocations: 1.034 MB / 411.2 MB, free: 24.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.2092, allocations: 4 kB / 411.2 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.2095, allocations: 60.2 kB / 411.3 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003081/0.2098, allocations: 145.1 kB / 411.4 MB, free: 24.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002672/0.2101, allocations: 134.6 kB / 411.6 MB, free: 24.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003068/0.2104, allocations: 458.5 kB / 412 MB, free: 23.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.2106, allocations: 81.36 kB / 412.1 MB, free: 23.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.2108, allocations: 215.3 kB / 412.3 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002191/0.2111, allocations: 239.2 kB / 412.5 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.753e-05/0.2111, allocations: 20 kB / 412.5 MB, free: 23.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001733/0.2113, allocations: 99.97 kB / 412.6 MB, free: 23.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.775e-05/0.2114, allocations: 99.69 kB / 412.7 MB, free: 23.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.2116, allocations: 192.9 kB / 412.9 MB, free: 22.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002967/0.2119, allocations: 404 kB / 413.3 MB, free: 22.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.2119, allocations: 0 / 413.3 MB, free: 22.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2119, allocations: 3.938 kB / 413.3 MB, free: 22.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.2119, allocations: 0 / 413.3 MB, free: 22.41 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001007/0.2129, allocations: 0.6394 MB / 414 MB, free: 21.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.2129, allocations: 16.03 kB / 414 MB, free: 21.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003458/0.2133, allocations: 60.53 kB / 414 MB, free: 21.65 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003587/0.2137, allocations: 315.3 kB / 414.4 MB, free: 21.3 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001115/0.2138, allocations: 92.61 kB / 414.4 MB, free: 21.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.864e-05/0.2139, allocations: 36.28 kB / 414.5 MB, free: 21.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006744/0.2145, allocations: 425 kB / 414.9 MB, free: 20.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.2146, allocations: 4 kB / 414.9 MB, free: 20.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.2146, allocations: 12 kB / 414.9 MB, free: 20.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.2146, allocations: 8 kB / 414.9 MB, free: 20.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008537/0.2155, allocations: 486.2 kB / 415.4 MB, free: 20.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/0.2169, allocations: 1.001 MB / 416.4 MB, free: 19.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007228/0.2176, allocations: 401.5 kB / 416.8 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004008/0.2181, allocations: 246 kB / 417 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.971e-05/0.2181, allocations: 4.438 kB / 417 MB, free: 18.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.2181, allocations: 39 kB / 417.1 MB, free: 18.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.374e-06/0.2181, allocations: 0 / 417.1 MB, free: 18.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004567/0.2227, allocations: 2.207 MB / 419.3 MB, free: 16.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.2228, allocations: 85.67 kB / 419.4 MB, free: 16.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/0.2231, allocations: 268.1 kB / 419.6 MB, free: 15.8 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.741e-05/0.2231, allocations: 37.7 kB / 419.7 MB, free: 15.76 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.207e-05/0.2232, allocations: 141.2 kB / 419.8 MB, free: 15.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.402e-05/0.2233, allocations: 189.3 kB / 420 MB, free: 15.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.042e-05/0.2233, allocations: 12 kB / 420 MB, free: 15.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.694e-05/0.2234, allocations: 334.8 kB / 420.3 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003844/0.2238, allocations: 197 kB / 420.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004039/0.2242, allocations: 252.6 kB / 420.8 MB, free: 14.64 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007015/0.2249, allocations: 396.3 kB / 421.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2249, allocations: 0 / 421.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001071/0.226, allocations: 0.6174 MB / 421.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.226, allocations: 11.94 kB / 421.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.226, allocations: 3.938 kB / 421.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007077/0.2268, allocations: 298.5 kB / 422.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.2271, allocations: 71.95 kB / 422.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002912/0.23, allocations: 2.706 MB / 424.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002895/0.2303, allocations: 35.97 kB / 424.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.487e-05/0.2303, allocations: 12 kB / 424.9 MB, free: 10.35 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001673/0.2305, allocations: 165.8 kB / 425.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.7e-05/0.2306, allocations: 31.62 kB / 425.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.254e-05/0.2307, allocations: 47.3 kB / 425.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.2307, allocations: 11.94 kB / 425.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.2307, allocations: 0 / 425.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2307, allocations: 0 / 425.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001896/0.2326, allocations: 1.307 MB / 426.4 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.097e-06/0.2326, allocations: 8.031 kB / 426.5 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002989/0.2329, allocations: 75.94 kB / 426.5 MB, free: 8.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006276/0.2336, allocations: 288.5 kB / 426.8 MB, free: 8.352 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.955e-05/0.2336, allocations: 15.98 kB / 426.8 MB, free: 8.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002744/0.2364, allocations: 2.604 MB / 429.4 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.2364, allocations: 0 / 429.4 MB, free: 5.602 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001523/0.2379, allocations: 0.9611 MB / 430.4 MB, free: 4.621 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.2381, allocations: 172.6 kB / 430.6 MB, free: 4.434 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.824e-05/0.2381, allocations: 12 kB / 430.6 MB, free: 4.422 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002901/0.2384, allocations: 40.03 kB / 430.6 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.2386, allocations: 80.28 kB / 430.7 MB, free: 4.305 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.582e-05/0.2386, allocations: 19.98 kB / 430.7 MB, free: 4.285 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001844/0.2388, allocations: 197.6 kB / 430.9 MB, free: 4.094 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2388, allocations: 0 / 430.9 MB, free: 4.094 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005829/0.2394, allocations: 152 kB / 431.1 MB, free: 3.945 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007351/0.2402, allocations: 384 kB / 431.4 MB, free: 3.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.2414, allocations: 0.7073 MB / 432.1 MB, free: 2.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2415, allocations: 0 / 432.1 MB, free: 2.957 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006864/0.2422, allocations: 487.7 kB / 432.6 MB, free: 2.465 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004675/0.2426, allocations: 55.2 kB / 432.7 MB, free: 2.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001357/0.244, allocations: 0.9817 MB / 433.6 MB, free: 1.395 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001961/0.2442, allocations: 0.797 MB / 434.4 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.2444, allocations: 43.39 kB / 434.5 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of SimCode: time 3.31e-07/0.2444, allocations: 0 / 434.5 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of Templates: time 0.009979/0.2544, allocations: 6.616 MB / 441.1 MB, free: 9.914 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches