Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001152/0.001152, allocations: 121.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001247/0.001247, allocations: 199.9 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2245/0.2245, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001624/0.001624, allocations: 75.88 kB / 481.3 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.3329, allocations: 62.44 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001957/0.3349, allocations: 0.807 MB / 0.5318 GB, free: 12.99 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002056/0.3352, allocations: 49 kB / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.593e-05/0.3352, allocations: 1.469 kB / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001097/0.3354, allocations: 5.344 kB / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.63e-05/0.3354, allocations: 3.938 kB / 0.5318 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001487/0.3355, allocations: 24.5 kB / 0.5318 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001164/0.3357, allocations: 37.33 kB / 0.5319 GB, free: 12.9 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.3358, allocations: 20.47 kB / 0.5319 GB, free: 12.89 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.231e-05/0.3358, allocations: 11.8 kB / 0.5319 GB, free: 12.88 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.906e-05/0.3359, allocations: 22.14 kB / 0.5319 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.72e-05/0.3359, allocations: 7.469 kB / 0.5319 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.182e-05/0.3359, allocations: 2.625 kB / 0.5319 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.336, allocations: 6.062 kB / 0.532 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.37e-05/0.336, allocations: 15.53 kB / 0.532 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001089/0.3361, allocations: 39.67 kB / 0.532 GB, free: 12.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3361, allocations: 0 / 0.532 GB, free: 12.81 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3361, allocations: 1.5 kB / 0.532 GB, free: 12.81 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.3361, allocations: 0 / 0.532 GB, free: 12.81 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004322/0.3366, allocations: 356.8 kB / 0.5323 GB, free: 12.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.3366, allocations: 10.25 kB / 0.5324 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.407e-05/0.3367, allocations: 7.562 kB / 0.5324 GB, free: 12.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.3369, allocations: 175.2 kB / 0.5325 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.457e-06/0.3369, allocations: 1.812 kB / 0.5325 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.428e-05/0.3369, allocations: 7.312 kB / 0.5325 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001172/0.337, allocations: 48.77 kB / 0.5326 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.3371, allocations: 1.906 kB / 0.5326 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.3371, allocations: 11.92 kB / 0.5326 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3371, allocations: 5.844 kB / 0.5326 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.671e-05/0.3371, allocations: 15.28 kB / 0.5326 GB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.3376, allocations: 291.6 kB / 0.5329 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.114e-05/0.3377, allocations: 19.95 kB / 0.5329 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.244e-05/0.3377, allocations: 10.64 kB / 0.5329 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.303e-06/0.3377, allocations: 5.719 kB / 0.5329 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.462e-05/0.3378, allocations: 53 kB / 0.533 GB, free: 11.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.3378, allocations: 0 / 0.533 GB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001412/0.338, allocations: 46.97 kB / 0.533 GB, free: 11.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.338, allocations: 52.69 kB / 0.5331 GB, free: 11.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.353e-05/0.3381, allocations: 119.8 kB / 0.5332 GB, free: 11.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.3381, allocations: 29.69 kB / 0.5332 GB, free: 11.5 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.636e-05/0.3382, allocations: 96.73 kB / 0.5333 GB, free: 11.4 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.308e-05/0.3382, allocations: 11.84 kB / 0.5333 GB, free: 11.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-05/0.3382, allocations: 17.72 kB / 0.5333 GB, free: 11.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.3383, allocations: 325.3 kB / 0.5337 GB, free: 11.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.575e-05/0.3384, allocations: 2.25 kB / 0.5337 GB, free: 11.05 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.224e-05/0.3384, allocations: 17.75 kB / 0.5337 GB, free: 11.03 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.687e-05/0.3384, allocations: 26.77 kB / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3385, allocations: 7.938 kB / 0.5337 GB, free: 11 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.796e-05/0.3385, allocations: 53.41 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.3386, allocations: 12.92 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.3386, allocations: 1.688 kB / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.3386, allocations: 0 / 0.5338 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.247e-05/0.3386, allocations: 7.031 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.3386, allocations: 1.781 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.739e-05/0.3387, allocations: 2.312 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.3387, allocations: 3.938 kB / 0.5338 GB, free: 10.94 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.008e-05/0.3387, allocations: 117.4 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.144e-05/0.3388, allocations: 5.281 kB / 0.5339 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.254e-05/0.3388, allocations: 13.27 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.3388, allocations: 1.375 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3388, allocations: 0 / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.3388, allocations: 1.375 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000274/0.3391, allocations: 292.6 kB / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.3391, allocations: 0 / 0.5342 GB, free: 10.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.42e-05/0.3391, allocations: 9.359 kB / 0.5342 GB, free: 10.47 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.3392, allocations: 9.312 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.3392, allocations: 0 / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.66e-06/0.3392, allocations: 5.312 kB / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3392, allocations: 0 / 0.5342 GB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001402/0.3393, allocations: 148 kB / 0.5344 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.769e-05/0.3394, allocations: 78.48 kB / 0.5344 GB, free: 10.22 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.491e-05/0.3394, allocations: 5.375 kB / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.799e-05/0.3395, allocations: 9.297 kB / 0.5344 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.684e-05/0.3395, allocations: 5.438 kB / 0.5345 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.3395, allocations: 1.375 kB / 0.5345 GB, free: 10.2 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.717e-05/0.3396, allocations: 91.52 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3396, allocations: 0 / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.3398, allocations: 9.406 kB / 0.5345 GB, free: 10.12 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001419/0.3399, allocations: 98.19 kB / 0.5346 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 7.678e-05/0.34, allocations: 23.27 kB / 0.5347 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.34, allocations: 1.375 kB / 0.5347 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 1.684e-05/0.34, allocations: 9.562 kB / 0.5347 GB, free: 10.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.3403, allocations: 14.72 kB / 0.5347 GB, free: 10 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002682/0.3406, allocations: 127.7 kB / 0.5348 GB, free: 9.875 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.3409, allocations: 0.6861 MB / 0.5355 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.109e-05/0.3409, allocations: 5.609 kB / 0.5355 GB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.002e-05/0.3409, allocations: 10.19 kB / 0.5355 GB, free: 9.16 MB / 398.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3409, allocations: 0 / 0.5355 GB, free: 9.16 MB / 398.1 MB Notification: Performance of Templates: time 0.002487/0.3434, allocations: 0.5042 MB / 0.536 GB, free: 8.902 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches