Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.001094, allocations: 110.4 kB / 17.78 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 187.1 kB / 18.71 MB, free: 4.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 242.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2008/0.2008, allocations: 44.18 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 63.89 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3335, allocations: 60.82 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00192/0.3354, allocations: 0.8077 MB / 0.5192 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001962/0.3357, allocations: 54.19 kB / 0.5192 GB, free: 2.746 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.594e-05/0.3357, allocations: 5.281 kB / 0.5193 GB, free: 2.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001035/0.3358, allocations: 9.344 kB / 0.5193 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.784e-05/0.3359, allocations: 5.062 kB / 0.5193 GB, free: 2.73 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001187/0.336, allocations: 16.53 kB / 0.5193 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001075/0.3361, allocations: 37.47 kB / 0.5193 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.3362, allocations: 17.75 kB / 0.5193 GB, free: 2.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.545e-05/0.3363, allocations: 17.53 kB / 0.5193 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.426e-05/0.3363, allocations: 22.38 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.493e-05/0.3363, allocations: 2.219 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.13e-05/0.3363, allocations: 3.719 kB / 0.5194 GB, free: 2.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.004e-05/0.3364, allocations: 6.766 kB / 0.5194 GB, free: 2.668 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.117e-05/0.3364, allocations: 16.34 kB / 0.5194 GB, free: 2.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001053/0.3365, allocations: 38.2 kB / 0.5194 GB, free: 2.641 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.3365, allocations: 0 / 0.5194 GB, free: 2.641 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.3365, allocations: 0.6562 kB / 0.5194 GB, free: 2.641 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.3365, allocations: 3.938 kB / 0.5194 GB, free: 2.637 MB / 382.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.0003816/0.3369, allocations: 353.9 kB / 0.5198 GB, free: 2.262 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.337, allocations: 13.81 kB / 0.5198 GB, free: 2.258 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.969e-05/0.337, allocations: 33.33 kB / 0.5198 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.337, allocations: 15.5 kB / 0.5198 GB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.3372, allocations: 176.9 kB / 0.52 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.649e-06/0.3372, allocations: 3.188 kB / 0.52 GB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.848e-05/0.3373, allocations: 6.812 kB / 0.52 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001033/0.3374, allocations: 54 kB / 0.5201 GB, free: 1.961 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.3374, allocations: 3.938 kB / 0.5201 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.536e-06/0.3374, allocations: 0 / 0.5201 GB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.3374, allocations: 5.656 kB / 0.5201 GB, free: 1.953 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.12e-05/0.3375, allocations: 13.42 kB / 0.5201 GB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004294/0.3379, allocations: 297.5 kB / 0.5204 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.484e-05/0.338, allocations: 20.92 kB / 0.5204 GB, free: 1.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.513e-05/0.338, allocations: 11.39 kB / 0.5204 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.338, allocations: 2 kB / 0.5204 GB, free: 1.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.06e-05/0.3381, allocations: 58.36 kB / 0.5205 GB, free: 1.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.3381, allocations: 0 / 0.5205 GB, free: 1.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001385/0.3382, allocations: 46.28 kB / 0.5205 GB, free: 1.523 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.265e-05/0.3383, allocations: 52.2 kB / 0.5206 GB, free: 1.461 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.034e-05/0.3383, allocations: 117.2 kB / 0.5207 GB, free: 1.355 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.025e-06/0.3383, allocations: 29.64 kB / 0.5207 GB, free: 1.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.88e-05/0.3384, allocations: 96.33 kB / 0.5208 GB, free: 1.227 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.287e-05/0.3384, allocations: 10.25 kB / 0.5208 GB, free: 1.219 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-05/0.3384, allocations: 18.47 kB / 0.5208 GB, free: 1.199 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.453e-05/0.3385, allocations: 322.5 kB / 0.5211 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.624e-05/0.3385, allocations: 7.688 kB / 0.5211 GB, free: 0.875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.93e-05/0.3385, allocations: 19.55 kB / 0.5211 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.42e-05/0.3386, allocations: 24.12 kB / 0.5212 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3386, allocations: 8 kB / 0.5212 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.982e-05/0.3386, allocations: 55.23 kB / 0.5212 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.3387, allocations: 6.375 kB / 0.5212 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3387, allocations: 1.344 kB / 0.5212 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.456e-05/0.3387, allocations: 0 / 0.5212 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.22e-05/0.3387, allocations: 8.453 kB / 0.5212 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.3387, allocations: 2 kB / 0.5212 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.959e-05/0.3388, allocations: 5.25 kB / 0.5213 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.3388, allocations: 2.266 kB / 0.5213 GB, free: 0.7773 MB / 382.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 5.37e-05/0.3388, allocations: 121.4 kB / 0.5214 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/0.3389, allocations: 7.078 kB / 0.5214 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.355e-05/0.3389, allocations: 6.562 kB / 0.5214 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3389, allocations: 3.984 kB / 0.5214 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3389, allocations: 1.5 kB / 0.5214 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.3389, allocations: 4.641 kB / 0.5214 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002134/0.3391, allocations: 290.4 kB / 0.5217 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3391, allocations: 1.312 kB / 0.5217 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.927e-05/0.3392, allocations: 1.844 kB / 0.5217 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3392, allocations: 5.312 kB / 0.5217 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.3392, allocations: 8.453 kB / 0.5217 GB, free: 320 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3392, allocations: 4.938 kB / 0.5217 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3392, allocations: 0.5625 kB / 0.5217 GB, free: 316 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001053/0.3393, allocations: 149.6 kB / 0.5218 GB, free: 172 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.148e-05/0.3394, allocations: 79 kB / 0.5219 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.476e-05/0.3394, allocations: 5.812 kB / 0.5219 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.731e-05/0.3394, allocations: 1.375 kB / 0.5219 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.572e-05/0.3395, allocations: 6.812 kB / 0.5219 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.3395, allocations: 1.156 kB / 0.5219 GB, free: 68 kB / 382.1 MB Notification: Performance of sorting global known variables: time 6.598e-05/0.3395, allocations: 91.38 kB / 0.522 GB, free: 15.99 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3396, allocations: 0 / 0.522 GB, free: 15.99 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002203/0.3398, allocations: 13.5 kB / 0.522 GB, free: 15.98 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.0004218/0.3402, allocations: 0.6821 MB / 0.5227 GB, free: 15.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.353e-05/0.3403, allocations: 22.03 kB / 0.5227 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3403, allocations: 0 / 0.5227 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.021e-05/0.3403, allocations: 10.59 kB / 0.5227 GB, free: 15.3 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000279/0.3406, allocations: 10.61 kB / 0.5227 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001157/0.3418, allocations: 1.287 MB / 0.524 GB, free: 14.06 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.3421, allocations: 0.6916 MB / 0.5247 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.386e-05/0.3421, allocations: 7.969 kB / 0.5247 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.3422, allocations: 15.19 kB / 0.5247 GB, free: 13.34 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3422, allocations: 0 / 0.5247 GB, free: 13.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01963/0.3618, allocations: 1.59 MB / 0.5262 GB, free: 12.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.71/8.072, allocations: 1.656 kB / 0.5262 GB, free: 12.95 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.y Variables in the result:const.k,const.y,der(integrator.y),greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,integrator.initType,integrator.k,integrator.reset,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,time