Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00164/0.00164, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001937/0.001937, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.463/1.463, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001969, allocations: 69.39 kB / 307.9 MB, free: 0.4922 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1026, allocations: 50.53 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00606/0.1087, allocations: 4.005 MB / 362.4 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003008/0.1117, allocations: 1.609 MB / 364 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002949/0.1121, allocations: 11.94 kB / 364.1 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007824/0.1129, allocations: 258.8 kB / 364.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007082/0.1136, allocations: 290.1 kB / 364.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006392/0.1142, allocations: 263.3 kB / 364.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008133/0.115, allocations: 0.728 MB / 365.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003071/0.1154, allocations: 165.1 kB / 365.7 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004171/0.1158, allocations: 290.9 kB / 366 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/0.1162, allocations: 298.8 kB / 366.3 MB, free: 6.004 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.596e-05/0.1163, allocations: 52 kB / 366.4 MB, free: 5.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000243/0.1165, allocations: 107.9 kB / 366.5 MB, free: 5.848 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.1167, allocations: 139.5 kB / 366.6 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003095/0.117, allocations: 302.5 kB / 366.9 MB, free: 5.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000788/0.1178, allocations: 0.7124 MB / 367.6 MB, free: 4.699 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1178, allocations: 0 / 367.6 MB, free: 4.699 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1178, allocations: 3.938 kB / 367.6 MB, free: 4.695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.1179, allocations: 0 / 367.6 MB, free: 4.695 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001714/0.1196, allocations: 0.9453 MB / 368.6 MB, free: 3.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.1196, allocations: 8.031 kB / 368.6 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002399/0.1199, allocations: 76.09 kB / 368.6 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005687/0.1204, allocations: 410.8 kB / 369 MB, free: 3.168 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.1205, allocations: 29.38 kB / 369.1 MB, free: 3.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/0.1206, allocations: 48.06 kB / 369.1 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007674/0.1213, allocations: 441.6 kB / 369.5 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.58e-05/0.1214, allocations: 8 kB / 369.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.259e-05/0.1214, allocations: 16 kB / 369.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.1214, allocations: 8 kB / 369.6 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006429/0.1221, allocations: 315.7 kB / 369.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002608/0.1247, allocations: 1.714 MB / 371.6 MB, free: 500 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007354/0.1255, allocations: 370.8 kB / 372 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1496/0.2751, allocations: 180.8 kB / 372.1 MB, free: 20.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.734e-05/0.2752, allocations: 5.188 kB / 372.1 MB, free: 20.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005092/0.2757, allocations: 255.2 kB / 372.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.814e-06/0.2757, allocations: 0 / 372.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002213/0.2779, allocations: 1.017 MB / 373.4 MB, free: 19.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/0.278, allocations: 200.1 kB / 373.6 MB, free: 19.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006357/0.2786, allocations: 0.5035 MB / 374.1 MB, free: 19.31 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.2787, allocations: 32.64 kB / 374.1 MB, free: 19.28 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.2788, allocations: 256.4 kB / 374.4 MB, free: 19.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.067e-05/0.2789, allocations: 130.7 kB / 374.5 MB, free: 19.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.279, allocations: 75.45 kB / 374.6 MB, free: 19.11 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.061e-05/0.2791, allocations: 362.1 kB / 374.9 MB, free: 18.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002629/0.2794, allocations: 120.6 kB / 375.1 MB, free: 18.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.2797, allocations: 216.5 kB / 375.3 MB, free: 18.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004615/0.2802, allocations: 269.1 kB / 375.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.2802, allocations: 0 / 375.5 MB, free: 18.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008377/0.281, allocations: 476.6 kB / 376 MB, free: 18.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.2811, allocations: 5.438 kB / 376 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2811, allocations: 1.188 kB / 376 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005009/0.2816, allocations: 162.3 kB / 376.2 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002193/0.2818, allocations: 52.94 kB / 376.2 MB, free: 18.15 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003567/0.2854, allocations: 6.64 MB / 382.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003823/0.2858, allocations: 57.11 kB / 382.9 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.49e-05/0.2858, allocations: 9.703 kB / 382.9 MB, free: 11.66 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002112/0.286, allocations: 188.4 kB / 383.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.042e-05/0.2861, allocations: 57.97 kB / 383.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.2862, allocations: 62.08 kB / 383.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2862, allocations: 8.734 kB / 383.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.2862, allocations: 0 / 383.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2863, allocations: 2.062 kB / 383.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004612/0.2867, allocations: 495.9 kB / 383.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.2867, allocations: 0.6562 kB / 383.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.2869, allocations: 24.11 kB / 383.7 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004092/0.2873, allocations: 167.2 kB / 383.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.454e-05/0.2873, allocations: 6.953 kB / 383.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003342/0.2907, allocations: 6.368 MB / 390.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.2907, allocations: 3.938 kB / 390.3 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000922/0.2916, allocations: 0.4969 MB / 390.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001567/0.2918, allocations: 161.9 kB / 390.9 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.721e-05/0.2919, allocations: 12.05 kB / 391 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002908/0.2922, allocations: 33.52 kB / 391 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.2923, allocations: 57.08 kB / 391 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.812e-05/0.2924, allocations: 12.33 kB / 391.1 MB, free: 4.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003806/0.2927, allocations: 370.2 kB / 391.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2928, allocations: 0 / 391.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007698/0.2935, allocations: 171 kB / 391.6 MB, free: 4.207 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: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001447/0.295, allocations: 438.8 kB / 392 MB, free: 4.027 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.2961, allocations: 0.8215 MB / 392.8 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.2961, allocations: 0 / 392.8 MB, free: 3.434 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005854/0.2967, allocations: 0.6496 MB / 393.5 MB, free: 2.902 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005472/0.2973, allocations: 123.7 kB / 393.6 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001847/0.2991, allocations: 1.021 MB / 394.6 MB, free: 2.305 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002985/0.2994, allocations: 0.8595 MB / 395.5 MB, free: 1.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.208e-05/0.2995, allocations: 40.83 kB / 395.5 MB, free: 1.582 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2995, allocations: 0 / 395.5 MB, free: 1.582 MB / 302.1 MB Notification: Performance of Templates: time 0.01851/0.318, allocations: 14.9 MB / 410.4 MB, free: 9.582 MB / 318.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches