Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.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) 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001224/0.001224, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00151/0.00151, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 59.28 kB / 307.1 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09599, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003203/0.09924, allocations: 1.443 MB / 359 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002126/0.09948, allocations: 35.84 kB / 359.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.964e-05/0.09957, allocations: 4 kB / 359.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.185e-05/0.09961, allocations: 3.938 kB / 359.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.598e-05/0.09969, allocations: 3.938 kB / 359.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002423/0.09994, allocations: 27.97 kB / 359.1 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.916e-05/0.1, allocations: 39.91 kB / 359.1 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001048/0.1002, allocations: 8 kB / 359.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.055e-05/0.1002, allocations: 19.92 kB / 359.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.48e-05/0.1003, allocations: 23.91 kB / 359.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.1003, allocations: 4 kB / 359.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.077e-05/0.1003, allocations: 0 / 359.2 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.17e-05/0.1003, allocations: 15.94 kB / 359.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.786e-05/0.1004, allocations: 15.92 kB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.647e-05/0.1005, allocations: 39.88 kB / 359.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.309e-06/0.1005, allocations: 0 / 359.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1005, allocations: 7.938 kB / 359.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.293e-06/0.1005, allocations: 0 / 359.3 MB, free: 12.34 MB / 302.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.000465/0.101, allocations: 351.6 kB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.101, allocations: 8.031 kB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.456e-05/0.1011, allocations: 34.75 kB / 359.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.1011, allocations: 12.84 kB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.1013, allocations: 184.3 kB / 359.8 MB, free: 11.66 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.1015, allocations: 30.27 kB / 359.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.1015, allocations: 4.375 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003174/0.1018, allocations: 131.5 kB / 360 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.1019, allocations: 0 / 360 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.1019, allocations: 4 kB / 360 MB, free: 11.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.1019, allocations: 7.938 kB / 360 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.035e-05/0.102, allocations: 19.98 kB / 360 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00016/0.1021, allocations: 157.7 kB / 360.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002054/0.1024, allocations: 139.7 kB / 360.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.579e-05/0.1024, allocations: 28.83 kB / 360.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.039e-05/0.1024, allocations: 0 / 360.4 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/0.1025, allocations: 42.5 kB / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.1025, allocations: 0 / 360.4 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002299/0.1027, allocations: 69.69 kB / 360.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.393e-05/0.1028, allocations: 63.28 kB / 360.5 MB, free: 10.86 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.37e-05/0.1029, allocations: 117.9 kB / 360.6 MB, free: 10.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.1029, allocations: 25.7 kB / 360.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.445e-05/0.1029, allocations: 80.14 kB / 360.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.103, allocations: 11.98 kB / 360.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/0.103, allocations: 25.7 kB / 360.8 MB, free: 10.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.686e-05/0.1031, allocations: 310.8 kB / 361.1 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.957e-05/0.1031, allocations: 15.98 kB / 361.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.808e-05/0.1032, allocations: 32.3 kB / 361.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.474e-05/0.1032, allocations: 52.22 kB / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1032, allocations: 0 / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001056/0.1033, allocations: 77.47 kB / 361.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.1034, allocations: 11.94 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1034, allocations: 4.156 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.1034, allocations: 4 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.51e-05/0.1035, allocations: 4 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.783e-06/0.1035, allocations: 0 / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.596e-05/0.1035, allocations: 4 kB / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.1035, allocations: 0 / 361.3 MB, free: 10.02 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.842e-05/0.1036, allocations: 121.7 kB / 361.4 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001035/0.1037, allocations: 65.62 kB / 361.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.153e-05/0.1037, allocations: 7.953 kB / 361.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.1037, allocations: 8 kB / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.1038, allocations: 0 / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.1038, allocations: 0 / 361.5 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.342e-05/0.1039, allocations: 161.7 kB / 361.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.1039, allocations: 0 / 361.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.181e-06/0.1039, allocations: 0 / 361.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.1039, allocations: 3.938 kB / 361.6 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.1039, allocations: 4 kB / 361.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.1039, allocations: 7.875 kB / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.1039, allocations: 0 / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.104, allocations: 94.97 kB / 361.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.53e-05/0.1041, allocations: 92.97 kB / 361.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.938e-05/0.1041, allocations: 4 kB / 361.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.675e-05/0.1042, allocations: 4 kB / 361.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.295e-06/0.1042, allocations: 0 / 361.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.552e-06/0.1042, allocations: 0 / 361.9 MB, free: 9.355 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.045e-05/0.1042, allocations: 91.27 kB / 361.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1042, allocations: 0 / 361.9 MB, free: 9.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001942/0.1044, allocations: 4 kB / 361.9 MB, free: 9.262 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0004458/0.1049, allocations: 0.6553 MB / 362.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001163/0.105, allocations: 35.92 kB / 362.6 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.105, allocations: 4 kB / 362.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.41e-07/0.105, allocations: 384 / 362.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006409/0.1057, allocations: 0.7219 MB / 363.4 MB, free: 7.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009602/0.1067, allocations: 1.221 MB / 364.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/0.1069, allocations: 0.6807 MB / 365.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.343e-05/0.1069, allocations: 0 / 365.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.341e-05/0.107, allocations: 19.38 kB / 365.3 MB, free: 5.742 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.107, allocations: 0 / 365.3 MB, free: 5.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01714/0.1241, allocations: 1.648 MB / 366.9 MB, free: 4.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.498/7.623, allocations: 10.81 kB / 366.9 MB, free: 4.207 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches