Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001572/0.001571, allocations: 179.4 kB / 16.77 MB, free: 4.898 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.619/1.619, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009899/0.0009895, allocations: 90.34 kB / 271.3 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08877/0.08877, allocations: 12.61 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004298/0.0004302, allocations: 12 kB / 392.6 MB, free: 66.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1185, allocations: 50.37 MB / 442.9 MB, free: 16.16 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous): time 0.00194/0.1205, allocations: 1.552 MB / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006372/0.1212, allocations: 468.1 kB / 445 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.904e-05/0.1213, allocations: 4 kB / 445 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.658e-05/0.1214, allocations: 7.922 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.458e-05/0.1214, allocations: 19.84 kB / 445 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001393/0.1216, allocations: 23.98 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001471/0.1217, allocations: 95.59 kB / 445.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.1219, allocations: 29.38 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.258e-05/0.122, allocations: 39.8 kB / 445.2 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.852e-05/0.122, allocations: 39.72 kB / 445.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.1221, allocations: 4 kB / 445.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.83e-05/0.1221, allocations: 4 kB / 445.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.218e-05/0.1221, allocations: 19.98 kB / 445.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.101e-05/0.1222, allocations: 69.42 kB / 445.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.1223, allocations: 64.09 kB / 445.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.1223, allocations: 0 / 445.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.1223, allocations: 0 / 445.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.1223, allocations: 0 / 445.4 MB, free: 13.71 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: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0005452/0.1229, allocations: 403.3 kB / 445.8 MB, free: 13.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.1229, allocations: 12.03 kB / 445.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.946e-05/0.123, allocations: 8.844 kB / 445.8 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.1232, allocations: 196.1 kB / 446 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.1232, allocations: 8.562 kB / 446 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.422e-05/0.1232, allocations: 12.38 kB / 446 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002834/0.1235, allocations: 131.2 kB / 446.1 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1236, allocations: 4 kB / 446.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.1236, allocations: 4 kB / 446.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.1236, allocations: 0 / 446.1 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000221/0.1238, allocations: 79.89 kB / 446.2 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005776/0.1244, allocations: 0.5362 MB / 446.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001822/0.1246, allocations: 82.61 kB / 446.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.1247, allocations: 44.83 kB / 446.9 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.1247, allocations: 160 / 446.9 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.1248, allocations: 34.5 kB / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.1248, allocations: 4 kB / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003868/0.1252, allocations: 141.8 kB / 447 MB, free: 11.84 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.78e-05/0.1252, allocations: 55.41 kB / 447.1 MB, free: 11.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.53e-05/0.1253, allocations: 131.1 kB / 447.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.699e-06/0.1253, allocations: 25.7 kB / 447.3 MB, free: 11.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.807e-05/0.1254, allocations: 115.9 kB / 447.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.08e-05/0.1254, allocations: 31.5 kB / 447.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.1254, allocations: 0 / 447.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.1255, allocations: 326.8 kB / 447.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.862e-05/0.1256, allocations: 39.97 kB / 447.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.1257, allocations: 72.2 kB / 447.8 MB, free: 11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001982/0.1259, allocations: 112.1 kB / 447.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1259, allocations: 0 / 447.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002526/0.1261, allocations: 149.4 kB / 448.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.1262, allocations: 8 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.1262, allocations: 0 / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1262, allocations: 0 / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.1264, allocations: 40.09 kB / 448.1 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.1264, allocations: 7.938 kB / 448.1 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.1265, allocations: 19.92 kB / 448.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.346e-06/0.1265, allocations: 4 kB / 448.2 MB, free: 10.64 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 6.993e-05/0.1266, allocations: 122.4 kB / 448.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.595e-05/0.1266, allocations: 7.906 kB / 448.3 MB, free: 10.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.353e-05/0.1267, allocations: 12.38 kB / 448.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.1267, allocations: 8 kB / 448.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1267, allocations: 0 / 448.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.1267, allocations: 0 / 448.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001623/0.1269, allocations: 205.5 kB / 448.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1269, allocations: 0 / 448.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000125/0.127, allocations: 19.98 kB / 448.5 MB, free: 10.22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.127, allocations: 7.938 kB / 448.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.127, allocations: 0 / 448.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.127, allocations: 0 / 448.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.127, allocations: 0 / 448.5 MB, free: 10.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003464/0.1274, allocations: 255.3 kB / 448.8 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.659e-05/0.1274, allocations: 85.02 kB / 448.9 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.721e-05/0.1274, allocations: 4 kB / 448.9 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.418e-05/0.1275, allocations: 12.03 kB / 448.9 MB, free: 9.828 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.459e-05/0.1276, allocations: 4.094 kB / 448.9 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.15e-06/0.1276, allocations: 3.984 kB / 448.9 MB, free: 9.82 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.02e-05/0.1276, allocations: 107.7 kB / 449 MB, free: 9.715 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.1276, allocations: 96 / 449 MB, free: 9.715 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002169/0.1279, allocations: 23.88 kB / 449 MB, free: 9.691 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * 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 (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 Backend phase and start with SimCode phase: time 8.448e-05/0.128, allocations: 99.19 kB / 449.1 MB, free: 9.582 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002585/0.1282, allocations: 95.86 kB / 449.2 MB, free: 9.488 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1282, allocations: 4.25 kB / 449.2 MB, free: 9.484 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.283e-05/0.1283, allocations: 43.97 kB / 449.3 MB, free: 9.441 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.1287, allocations: 15.94 kB / 449.3 MB, free: 9.426 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006335/0.1293, allocations: 464.8 kB / 449.7 MB, free: 8.938 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001457/0.1295, allocations: 0.7004 MB / 450.4 MB, free: 8.211 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.505e-05/0.1295, allocations: 15.44 kB / 450.4 MB, free: 8.195 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.1295, allocations: 0 / 450.4 MB, free: 8.195 MB / 298.7 MB Notification: Performance of Templates: time 0.002429/0.132, allocations: 1.25 MB / 451.7 MB, free: 6.945 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches